package com.wjy.game.message.data.res;

import java.util.List;

import com.wjy.game.enums.Operate;
import com.wjy.game.message.ResMessageData;

import lombok.Data;

/**
 * @author wjy
 * @date 2025/5/16 14:14
 * @description 加入房间
 */
@Data
public class JoinRoomRes implements ResMessageData {

    /**
     * 房间编号
     */
    private String roomId;

    /**
     * 房间名称
     */
    private String roomName;

    private List<Player> players;

    private List<Watcher> watchers;

    @Override
    public Operate operate() {
        return Operate.JOIN_ROOM;
    }

    @Data
    public static class Player {

        private String playerId;

        private String playerName;
    }

    @Data
    public static class Watcher {

        private String playerId;

        private String playerName;
    }

}
